package com.zuul.controller

import com.netflix.hystrix.contrib.javanica.annotation.DefaultProperties
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand
import com.yfree.global.YController
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RestController

@RestController
@DefaultProperties(defaultFallback = "yfree_defaultFallback")
class Controller_Zuul : YController() {
    @HystrixCommand
    @RequestMapping("/test", method = [RequestMethod.GET])
    fun test(): String {
        return json()
    }
}
